/***************************************************************************
 * Copyright 2012-2013 TXT e-solutions SpA
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * This work was performed within the IoT_at_Work Project
 * and partially funded by the European Commission's
 * 7th Framework Programme under the contract ICT-257367.
 *
 * Authors:
 *      Cristoforo Seccia
 *
 * Contributors:
 *        Domenico Rotondi (TXT e-solutions SpA)
 **************************************************************************/
package it.txt.ens.schema;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import it.txt.access.capability.schema.AccessRightsCapabilityType;
import javax.xml.bind.annotation.XmlRootElement;
import org.w3._2000._09.xmldsig_.SignatureType;


/**
 * <p>Java class for RequestType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="RequestType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="RequestID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
 *         &lt;element name="ResourceID" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *         &lt;element name="Subject" type="{http://schema.ens.services.capability.access.txt.it}SubjectType"/>
 *         &lt;element name="Operation" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="SessionDeadline" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         &lt;element name="AccessRightsCapability">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;choice>
 *                   &lt;element name="CapabilityHash" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="Capability" type="{http://schema.capability.access.txt.it}AccessRightsCapabilityType"/>
 *                 &lt;/choice>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *       &lt;attribute name="Version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="TimeStamp" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlRootElement(namespace = "http://schema.ens.services.capability.access.txt.it", name = "Request")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RequestType", propOrder = {
    "requestID",
    "signature",
    "resourceID",
    "subject",
    "operation",
    "sessionDeadline",
    "accessRightsCapability"
})
public class RequestType {

    @XmlElement(name = "RequestID", required = true)
    protected String requestID;
    @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
    protected SignatureType signature;
    @XmlElement(name = "ResourceID", required = true)
    @XmlSchemaType(name = "anyURI")
    protected String resourceID;
    @XmlElement(name = "Subject", required = true)
    protected SubjectType subject;
    @XmlElement(name = "Operation", required = true)
    protected String operation;
    @XmlElement(name = "SessionDeadline", required = true)
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar sessionDeadline;
    @XmlElement(name = "AccessRightsCapability", required = true)
    protected RequestType.AccessRightsCapability accessRightsCapability;
    @XmlAttribute(name = "Version", required = true)
    protected String version;
    @XmlAttribute(name = "TimeStamp", required = true)
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar timeStamp;

    /**
     * Gets the value of the requestID property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getRequestID() {
        return requestID;
    }

    /**
     * Sets the value of the requestID property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setRequestID(String value) {
        this.requestID = value;
    }

    /**
     * Gets the value of the signature property.
     * 
     * @return
     *     possible object is
     *     {@link SignatureType }
     *     
     */
    public SignatureType getSignature() {
        return signature;
    }

    /**
     * Sets the value of the signature property.
     * 
     * @param value
     *     allowed object is
     *     {@link SignatureType }
     *     
     */
    public void setSignature(SignatureType value) {
        this.signature = value;
    }

    /**
     * Gets the value of the resourceID property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getResourceID() {
        return resourceID;
    }

    /**
     * Sets the value of the resourceID property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setResourceID(String value) {
        this.resourceID = value;
    }

    /**
     * Gets the value of the subject property.
     * 
     * @return
     *     possible object is
     *     {@link SubjectType }
     *     
     */
    public SubjectType getSubject() {
        return subject;
    }

    /**
     * Sets the value of the subject property.
     * 
     * @param value
     *     allowed object is
     *     {@link SubjectType }
     *     
     */
    public void setSubject(SubjectType value) {
        this.subject = value;
    }

    /**
     * Gets the value of the operation property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getOperation() {
        return operation;
    }

    /**
     * Sets the value of the operation property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setOperation(String value) {
        this.operation = value;
    }

    /**
     * Gets the value of the sessionDeadline property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getSessionDeadline() {
        return sessionDeadline;
    }

    /**
     * Sets the value of the sessionDeadline property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setSessionDeadline(XMLGregorianCalendar value) {
        this.sessionDeadline = value;
    }

    /**
     * Gets the value of the accessRightsCapability property.
     * 
     * @return
     *     possible object is
     *     {@link RequestType.AccessRightsCapability }
     *     
     */
    public RequestType.AccessRightsCapability getAccessRightsCapability() {
        return accessRightsCapability;
    }

    /**
     * Sets the value of the accessRightsCapability property.
     * 
     * @param value
     *     allowed object is
     *     {@link RequestType.AccessRightsCapability }
     *     
     */
    public void setAccessRightsCapability(RequestType.AccessRightsCapability value) {
        this.accessRightsCapability = value;
    }

    /**
     * Gets the value of the version property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getVersion() {
        return version;
    }

    /**
     * Sets the value of the version property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setVersion(String value) {
        this.version = value;
    }

    /**
     * Gets the value of the timeStamp property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getTimeStamp() {
        return timeStamp;
    }

    /**
     * Sets the value of the timeStamp property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setTimeStamp(XMLGregorianCalendar value) {
        this.timeStamp = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;choice>
     *         &lt;element name="CapabilityHash" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="Capability" type="{http://schema.capability.access.txt.it}AccessRightsCapabilityType"/>
     *       &lt;/choice>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "capabilityHash",
        "capability"
    })
    public static class AccessRightsCapability {

        @XmlElement(name = "CapabilityHash")
        protected String capabilityHash;
        @XmlElement(name = "Capability")
        protected AccessRightsCapabilityType capability;

        /**
         * Gets the value of the capabilityHash property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getCapabilityHash() {
            return capabilityHash;
        }

        /**
         * Sets the value of the capabilityHash property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setCapabilityHash(String value) {
            this.capabilityHash = value;
        }

        /**
         * Gets the value of the capability property.
         * 
         * @return
         *     possible object is
         *     {@link AccessRightsCapabilityType }
         *     
         */
        public AccessRightsCapabilityType getCapability() {
            return capability;
        }

        /**
         * Sets the value of the capability property.
         * 
         * @param value
         *     allowed object is
         *     {@link AccessRightsCapabilityType }
         *     
         */
        public void setCapability(AccessRightsCapabilityType value) {
            this.capability = value;
        }

    }

}
